/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter.core.db.entity;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Snark
 */
@Entity
@Table(name = "INDIVIDUALS")
@NamedQueries({
    @NamedQuery(name = "Individuals.findAll", query = "SELECT i FROM Individuals i"),
    @NamedQuery(name = "Individuals.findBySysFldorder", query = "SELECT i FROM Individuals i WHERE i.sysFldorder = :sysFldorder"),
    @NamedQuery(name = "Individuals.findBySysGuid", query = "SELECT i FROM Individuals i WHERE i.sysGuid = :sysGuid"),
    @NamedQuery(name = "Individuals.findBySysState", query = "SELECT i FROM Individuals i WHERE i.sysState = :sysState"),
    @NamedQuery(name = "Individuals.findBySysRev", query = "SELECT i FROM Individuals i WHERE i.sysRev = :sysRev"),
    @NamedQuery(name = "Individuals.findBySysCreated", query = "SELECT i FROM Individuals i WHERE i.sysCreated = :sysCreated"),
    @NamedQuery(name = "Individuals.findBySysUpdated", query = "SELECT i FROM Individuals i WHERE i.sysUpdated = :sysUpdated"),
    @NamedQuery(name = "Individuals.findBySysCreator", query = "SELECT i FROM Individuals i WHERE i.sysCreator = :sysCreator"),
    @NamedQuery(name = "Individuals.findBySysUser", query = "SELECT i FROM Individuals i WHERE i.sysUser = :sysUser"),
    @NamedQuery(name = "Individuals.findBySysGuidfk", query = "SELECT i FROM Individuals i WHERE i.sysGuidfk = :sysGuidfk"),
    @NamedQuery(name = "Individuals.findBySysParentguid", query = "SELECT i FROM Individuals i WHERE i.sysParentguid = :sysParentguid"),
    @NamedQuery(name = "Individuals.findBySecondname", query = "SELECT i FROM Individuals i WHERE i.secondname = :secondname"),
    @NamedQuery(name = "Individuals.findByFirstname", query = "SELECT i FROM Individuals i WHERE i.firstname = :firstname"),
    @NamedQuery(name = "Individuals.findByPatronymic", query = "SELECT i FROM Individuals i WHERE i.patronymic = :patronymic"),
    @NamedQuery(name = "Individuals.findBySex", query = "SELECT i FROM Individuals i WHERE i.sex = :sex"),
    @NamedQuery(name = "Individuals.findByBirthday", query = "SELECT i FROM Individuals i WHERE i.birthday = :birthday"),
    @NamedQuery(name = "Individuals.findByCountryfk", query = "SELECT i FROM Individuals i WHERE i.countryfk = :countryfk"),
    @NamedQuery(name = "Individuals.findByBirthplace", query = "SELECT i FROM Individuals i WHERE i.birthplace = :birthplace"),
    @NamedQuery(name = "Individuals.findBySnils", query = "SELECT i FROM Individuals i WHERE i.snils = :snils"),
    @NamedQuery(name = "Individuals.findByPhone", query = "SELECT i FROM Individuals i WHERE i.phone = :phone"),
    @NamedQuery(name = "Individuals.findByDocType", query = "SELECT i FROM Individuals i WHERE i.docType = :docType"),
    @NamedQuery(name = "Individuals.findByPassSeries", query = "SELECT i FROM Individuals i WHERE i.passSeries = :passSeries"),
    @NamedQuery(name = "Individuals.findByPassNumber", query = "SELECT i FROM Individuals i WHERE i.passNumber = :passNumber"),
    @NamedQuery(name = "Individuals.findByPassDate", query = "SELECT i FROM Individuals i WHERE i.passDate = :passDate"),
    @NamedQuery(name = "Individuals.findByPassGive", query = "SELECT i FROM Individuals i WHERE i.passGive = :passGive"),
    @NamedQuery(name = "Individuals.findByAddress", query = "SELECT i FROM Individuals i WHERE i.address = :address")})
public class Individuals implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "SYS_FLDORDER")
    private Integer sysFldorder;
    @Id
    @Basic(optional = false)
    @Column(name = "SYS_GUID")
    private String sysGuid;
    @Column(name = "SYS_STATE")
    private Integer sysState;
    @Column(name = "SYS_REV")
    private BigInteger sysRev;
    @Column(name = "SYS_CREATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysCreated;
    @Column(name = "SYS_UPDATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysUpdated;
    @Column(name = "SYS_CREATOR")
    private String sysCreator;
    @Column(name = "SYS_USER")
    private String sysUser;
    @Column(name = "SYS_GUIDFK")
    private String sysGuidfk;
    @Column(name = "SYS_PARENTGUID")
    private String sysParentguid;
    @Column(name = "SECONDNAME")
    private String secondname;
    @Column(name = "FIRSTNAME")
    private String firstname;
    @Column(name = "PATRONYMIC")
    private String patronymic;
    @Column(name = "SEX")
    private String sex;
    @Column(name = "BIRTHDAY")
    @Temporal(TemporalType.DATE)
    private Date birthday;
    @Column(name = "COUNTRYFK")
    private String countryfk;
    @Column(name = "BIRTHPLACE")
    private String birthplace;
    @Column(name = "SNILS")
    private String snils;
    @Column(name = "PHONE")
    private String phone;
    @Column(name = "DOC_TYPE")
    private String docType;
    @Column(name = "PASS_SERIES")
    private String passSeries;
    @Column(name = "PASS_NUMBER")
    private String passNumber;
    @Column(name = "PASS_DATE")
    @Temporal(TemporalType.DATE)
    private Date passDate;
    @Column(name = "PASS_GIVE")
    private String passGive;
    @Column(name = "ADDRESS")
    private String address;

    public Individuals() {
    }

    public Individuals(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysFldorder() {
        return sysFldorder;
    }

    public void setSysFldorder(Integer sysFldorder) {
        this.sysFldorder = sysFldorder;
    }

    public String getSysGuid() {
        return sysGuid;
    }

    public void setSysGuid(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysState() {
        return sysState;
    }

    public void setSysState(Integer sysState) {
        this.sysState = sysState;
    }

    public BigInteger getSysRev() {
        return sysRev;
    }

    public void setSysRev(BigInteger sysRev) {
        this.sysRev = sysRev;
    }

    public Date getSysCreated() {
        return sysCreated;
    }

    public void setSysCreated(Date sysCreated) {
        this.sysCreated = sysCreated;
    }

    public Date getSysUpdated() {
        return sysUpdated;
    }

    public void setSysUpdated(Date sysUpdated) {
        this.sysUpdated = sysUpdated;
    }

    public String getSysCreator() {
        return sysCreator;
    }

    public void setSysCreator(String sysCreator) {
        this.sysCreator = sysCreator;
    }

    public String getSysUser() {
        return sysUser;
    }

    public void setSysUser(String sysUser) {
        this.sysUser = sysUser;
    }

    public String getSysGuidfk() {
        return sysGuidfk;
    }

    public void setSysGuidfk(String sysGuidfk) {
        this.sysGuidfk = sysGuidfk;
    }

    public String getSysParentguid() {
        return sysParentguid;
    }

    public void setSysParentguid(String sysParentguid) {
        this.sysParentguid = sysParentguid;
    }

    public String getSecondname() {
        return secondname;
    }

    public void setSecondname(String secondname) {
        this.secondname = secondname;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getPatronymic() {
        return patronymic;
    }

    public void setPatronymic(String patronymic) {
        this.patronymic = patronymic;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCountryfk() {
        return countryfk;
    }

    public void setCountryfk(String countryfk) {
        this.countryfk = countryfk;
    }

    public String getBirthplace() {
        return birthplace;
    }

    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }

    public String getSnils() {
        return snils;
    }

    public void setSnils(String snils) {
        this.snils = snils;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDocType() {
        return docType;
    }

    public void setDocType(String docType) {
        this.docType = docType;
    }

    public String getPassSeries() {
        return passSeries;
    }

    public void setPassSeries(String passSeries) {
        this.passSeries = passSeries;
    }

    public String getPassNumber() {
        return passNumber;
    }

    public void setPassNumber(String passNumber) {
        this.passNumber = passNumber;
    }

    public Date getPassDate() {
        return passDate;
    }

    public void setPassDate(Date passDate) {
        this.passDate = passDate;
    }

    public String getPassGive() {
        return passGive;
    }

    public void setPassGive(String passGive) {
        this.passGive = passGive;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sysGuid != null ? sysGuid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Individuals)) {
            return false;
        }
        Individuals other = (Individuals) object;
        if ((this.sysGuid == null && other.sysGuid != null) || (this.sysGuid != null && !this.sysGuid.equals(other.sysGuid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication1.entity.Individuals[ sysGuid=" + sysGuid + " ]";
    }
    
}
